﻿using System;
using UnityEngine;



namespace Game.Component
{
    /// <summary>
    /// 
    /// </summary>
    public class InteractionComponent : MonoBehaviour
    {
        InputHandler _inputHandler;

        public event Action OnInteractionNoticed;



        public void Awake()
        {
            _inputHandler = transform.GetComponent<InputHandler>();
            _inputHandler.OnInteractionToggled += () => OnInteractionNoticed?.Invoke();
        }
    }
}
